package com.sicnu.gateway.config;


import org.springframework.context.annotation.Configuration;
import org.springframework.util.AntPathMatcher;
import org.springframework.util.PathMatcher;

import java.util.Arrays;
import java.util.List;

@Configuration
public class WhiteListConfig {

    /**
     * 定义白名单路径
     */
    public List<String> getWhiteList() {
        return Arrays.asList(
                "/user/login",      // 登录接口
                "/user/logout",    // 登出接口
                "/**",
                "/websocket/**"
        );
    }
}